﻿<phone:PhoneApplicationPage 
    x:Class="QuickTasks.Views.ToDoList.ToDoList"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
     xmlns:my="clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=Microsoft.Advertising.Mobile.UI"  
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="728" d:DesignWidth="480"
    shell:SystemTray.IsVisible="False" Loaded="PhoneApplicationPage_Loaded">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot">
        <Grid.Background>
            <ImageBrush ImageSource="/QuickTaskBgImages/BackGround3.png"/>
        </Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <!--<RowDefinition Height="80"/>-->
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
<StackPanel Orientation="Horizontal"  Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="menu"  Style="{StaticResource PhoneTextNormalStyle}"/>
        </StackPanel>
       

        

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <StackPanel Orientation="Horizontal" Grid.Row="0">
                <TextBlock Text="Name" FontSize="28" Width="300" Margin="20,0,0,0"/>
                <TextBlock Text="Required" Visibility="Collapsed" x:Name="tblkName" Foreground="Red"/>
            </StackPanel>
            <TextBox x:Name="tbxName" FontSize="28" Grid.Row="1" InputScope="Text"  Margin="10,0,0,0" GotFocus="tbxname_focus"/>
            <TextBlock Text="Description" FontSize="28" x:Name="tblkdes" Grid.Row="2" Margin="20,0,0,0" />
            <TextBox x:Name="tbxDescription" FontSize="28" Grid.Row="3" Height="130" InputScope="Text" Margin="10,0,0,0" TextWrapping="Wrap" MaxLength="120" />
            <TextBlock Text="Category" FontSize="28"  Grid.Row="4" Margin="20,0,0,0"/>
            <TextBox x:Name="tbxCatagiry" FontSize="28" Grid.Row="5" TextWrapping="Wrap" InputScope="Text"  Margin="10,0,0,0"/>
            <StackPanel Orientation="Horizontal" Grid.Row="6" >
                <TextBlock Text="Due Date" FontSize="28" Margin="20,0,0,0"/>
                <TextBlock Text="Not a valid Date or Time " FontSize="28" Foreground="Red"  Margin="20,0,0,0" x:Name="tblkDateValidation" Visibility="Collapsed"/>
            </StackPanel>
            <StackPanel Grid.Row="7" Orientation="Horizontal">
                <toolkit:DatePicker x:Name="dpicdate"  FontSize="28"  Margin="10,0,276,0" Tap="dpicdate_Tap" />
                <toolkit:TimePicker x:Name="time" FontSize="28"  Margin="-210,0,276,0" Tap="time_Tap" ></toolkit:TimePicker>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Grid.Row="8" Height="90">
                <CheckBox x:Name="chkenablereminder" Width="239"    Checked="chkk_Checked" Unchecked="chkk_unChecked" Height="89"></CheckBox>
                
                    <RadioButton Content="time based" Name="timebasedRadioButton" GroupName="timeorlocation" Height="76" Width="210" Checked="timebasedRadioButton_Checked"></RadioButton>
                    <!--<RadioButton Name="locationRadioButton" Content="location based"  GroupName="timeorlocation" Checked="locationRadioButton_Checked" ></RadioButton>-->
                </StackPanel>
            
          
         
                          
        </Grid>
        <!--<StackPanel Name="adstackpanel" Grid.Row="2" VerticalAlignment="Bottom" Margin="-15,32,0,0"></StackPanel>-->
    </Grid>
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar.save.rest.png" Text="save" Click="ApplicationBarSaveAddListButton_Click"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar.check.rest.png" Text="complete" Click="ApplicationBarIconButton_Click"/>
            <shell:ApplicationBar.MenuItems>
            <shell:ApplicationBarMenuItem Text="completed tasks" Click="ApplicationBarMenuItem_Click"/>
        </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>
</phone:PhoneApplicationPage>
